__author__ = "Alexandre Lessard"
__copyright__ = "Copyright 2011, Alexandre Lessard"
__credits__ = ["Alexandre Lessard"]
__license__ = "BSD"
__version__ = "0.0.1"
__maintainer__ = "Alexandre Lessard"
__email__ = "alexandre.lessard.ti@gmail.com"
__status__ = "Prototype"


"""Controller module fot the products pages of the website"""

#Import system
from simpleAppsSME import app
import simpleAppsSME.modules.base_controller as bctl

class Products(bctl.BaseController):
    """Products controller class"""
    
    def index(self, product_id):
        """Page that list all products"""
        productModel = app.factory.model('products')
        
        return productModel.get_all()